package com.omega.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

@Entity
@Table(name = "RMS_ITEM_DENOMINATION")
public class ItemDenomination extends AbstractEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "DENOM_ID")
	@TableGenerator(table = "PORTAL_TABLE_GENERATOR", name = "TABLE_SEQ_GENERATOR", pkColumnValue = "DENOM_ID", allocationSize = 1, initialValue = 1)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "TABLE_SEQ_GENERATOR")
	private long denominationId;

	@Column(name = "DENOM_NAME", nullable = true, length = 100)
	private String denominationName;

	@Column(name = "MONTH", nullable = false, length = 2)
	private int month;

	@Column(name = "YEAR", nullable = false, length = 4)
	private int year;
	
	@Column(name = "DENOM_ACTIVE_FLAG", nullable = false, length = 1)
	private String denominationActive;

	/**
	 * @return the denominationId
	 */
	public long getDenominationId() {
		return denominationId;
	}

	/**
	 * @param denominationId
	 *            the denominationId to set
	 */
	public void setDenominationId(long denominationId) {
		this.denominationId = denominationId;
	}

	public String getDenominationName() {
		return denominationName;
	}

	public void setDenominationName(String denominationName) {
		this.denominationName = denominationName;
	}

	/**
	 * @return the month
	 */
	public int getMonth() {
		return month;
	}

	/**
	 * @param month
	 *            the month to set
	 */
	public void setMonth(int month) {
		this.month = month;
	}

	/**
	 * @return the year
	 */
	public int getYear() {
		return year;
	}

	/**
	 * @param year
	 *            the year to set
	 */
	public void setYear(int year) {
		this.year = year;
	}

	/**
	 * @return the denominationActive
	 */
	public String getDenominationActive() {
		return denominationActive;
	}

	/**
	 * @param denominationActive the denominationActive to set
	 */
	public void setDenominationActive(String denominationActive) {
		this.denominationActive = denominationActive;
	}
	
}
